export default {
  inject: ['elFormItem', 'elForm'],
  props: {
    name: String,
    value: {},
    disabled: Boolean,
    clearable: Boolean,
    placeholder: { type: String, default: '请选择' }
  },
  data () {
    return {
      fApi: this.elForm.$parent.$f
    }
  },
  computed: {
    // 获取表单项的field
    field () {
      return this.elFormItem.prop
    }
  }
}
